import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const nestedRoutes: RouteConfig = {
  path: '/nested',
  component: Layout,
  redirect: '/nested/drugsInfo',
  name: 'Nested',
  meta: {
    title: 'nested',
    icon: 'nested'
  },
  children: [
    {
      path: 'drugsInfo',
      component: () => import(/* webpackChunkName: "drugsInfo" */ '@/views/nested/drugs/drugInfo.vue'),
      name: 'drugsInfo',
      meta: {
        title: 'drugsInfo',
        icon: 'list'
      }
    },
    {
      path: 'drugAudit',
      component: () => import(/* webpackChunkName: "drugAudit" */ '@/views/nested/drugs/drugAudit.vue'),
      name: 'drugAudit',
      meta: {
        title: 'drugAudit',
        icon: 'edit',
        hidden: false
      },
      // eslint-disable-next-line @typescript-eslint/ban-ts-comment
      // @ts-ignore
      hidden: false

    },
    {
      path:'order',
      component : () => import(/*webpackChunkName: "order" */  '@/views/nested/drugs/order.vue'),
      name : 'Order',
      meta : {
          title : 'order'
      }
    },
    {
      path : ' returnOrder',
      component : () => import(/*webpackChunkName: "returnOrder"*/ '@/views/nested/drugs/returnOrder.vue'),
      name : ' ReturnOrder',
      meta : {
          title : 'returnOrder'
      }
    }
  ]

}

export default nestedRoutes
